import platform


def get_py_version(version=0):
    """
    Checks for the version of python currently running
    Args:
        version (float): desired version to check with
    Returns:
        Python version (unicode): The version currently running if no version is supplied
        Version check (bool): True if current version is higher than the given version. False if not
    """
    v = platform.python_version()
    f_v = float(v[:v.rindex('.')])
    if not version:
        return f_v
    if f_v >= float(version):
        return True
    return False